const { reactive, effect, createApp, RequestIdleCallback, computed, template, css } = DZL;
import './components/myButton.js'
createApp({ name: "dzl-app" }, function () {
  css`
  #dzl-app{
  background-color: red;
  color: red;
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  }
  `
  const state = reactive({
    name: '张三',
    age: 18,
    fat: false
  })
  const newAge = computed(() => {
    return state.age + 1
  })
  const changeName = () => {
    rander.effect.stop()
  }
  const setFat = () => {
    state.fat = !state.fat
    changeName2()

  }
  window.setFat = setFat
  const changeName2 = () => {
    state.name = Math.floor(Math.random() * 100)
    state.age = Math.floor(Math.random() * 100)
  }
  setTimeout(() => {
    changeName2()
  }, 3000)

  // let i = 0;
  // const test = (deadline) => {
  //   for (; i < 100000 && deadline.timeRemaining() > 0; i++) {
  //     const div = document.createElement('div')
  //     div.innerText = i
  //     document.body.appendChild(div)
  //   }
  //   if (i < 100000) {
  //     RequestIdleCallback(test)
  //   } else return;
  // }

  // RequestIdleCallback(test)



  setTimeout(() => {
    // changeName1()
    console.log('changeName2')
    state.name = '李四'

  }, 3000)
  // btn.addEventListener('click', changeName)
  // btn1.addEventListener('click', changeName1)
  // btn2.addEventListener('click', changeName2)
  return () => template`
  <div id="dzl-app" >
   <h1>响应式</h1>
  <div id="app"  > <h2>${(state.fat ? 'name:' : 'age:') + (state.fat ? state.name : state.age)}</h2></div>
  <div id="app2"><h3>姓名：${state.name}</h3></div>
  <div id="app1"><h3>計算屬性年龄：${newAge.value}</h3></div>
  <button id="btn" >停止</button>
  <button id="btn1"  onclick="setFat()">修改fat</button>
  <button id="btn2">修改</button>
  <div>**************自定義組件***************</div>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
  <my-button name='${state.name}'></my-button>
 
 
  <div>**************自定義組件***************</div>
  </div>
  `
})